package cn.dxh.stagefinal.service;

import cn.dxh.stagefinal.bean.Employee;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * IntelliJ IDEA -> stagefinal
 * 2019/12/10 10:56
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
public interface EmployeeService {
 PageInfo<Employee> findEmployees(Integer pageIndex ,Integer pageSize,String  eName ,Integer  dId,Integer rLevel);
 int insertEmployee(Employee employee)  ;
   int updateemployeepwd(Integer eId,String newPassword ,String rePassword);
   int  updateemployee(Employee employee);
   Employee  findEmployeeByeId(Integer eId);
   int deleteEmployeeByEid(Integer eId,Integer eState);
    int updateEmployeeEstateByEids(int[] eIds , Integer eState );
    List<Employee> findEmployeesByEids(int[] eIds);
   Employee   findEmployeeByLoginName(String loginName);
}
